package com.fengye.demo.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author haiqing.gao
 * @date 2024-01-22 15:57
 */
@Getter
@Setter
public class ServiceException extends RuntimeException {


    private String message;

    private int code;


    public ServiceException(String message, int code) {
        super(message);
        this.message = message;
        this.code = code;
    }

    public ServiceException(String message) {
        super(message);
        this.message = message;
    }
}
